package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.OmcReviseVar;

import java.util.Map;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-09-11 09:03
 * @Description: the interface omc revise var service
 */
public interface OmcReviseVarService extends IService<OmcReviseVar> {

    /**
     * init revise var
     *
     * @param loginAuthDto  the login auth dto
     *
     * @return  the int
     */
    Integer init(LoginAuthDto loginAuthDto);

    /**
     * destroy revise var
     *
     * @param loginAuthDto  the login auth dto
     *
     * @return  the int
     */
    Integer destroy(LoginAuthDto loginAuthDto);

    /**
     * query revise var by group id and key
     *
     * @param groupId   the group id
     * @param key       the revise var key
     *
     * @return  the revise value by key
     */
    String queryVarByGroupIdAndKey(Long groupId, String key);

    /**
     * query revise var by group id
     *
     * @param groupId   the group id
     *
     * @return  the map.
     */
    Map<String, Object> queryVarByGroupId(Long groupId);
}
